import { Pipe, PipeTransform } from '@angular/core';
import { getBillingStatusByValue } from '../model/status';

@Pipe({
  name: 'billingStatus'
})
export class BillingStatusPipe implements PipeTransform {

  transform(name: string): string {
    const data = getBillingStatusByValue(name);
    return data ? data.name : '';
  }


}
